package com.universe.titan.module.crudDemo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.universe.titan.common.entity.crudDemo.Demo;
import com.universe.titan.module.crudDemo.vo.DemoVo;

import java.util.List;

/**
 * @Author : linmaobo
 * @create 2022/12/6
 */
public interface DemoService extends IService<Demo> {
    /**
     * 根据名称查询
     * @param name
     * @return
     */
    List<Demo> getByName(String name);


    /**
     * 分页查询
     * @param demoVo 查询对象
     * @return
     */
    IPage<Demo> getPageByDemoVo(DemoVo demoVo);
}
